Class symantec.itools.db.beans.binding.TableBindingModel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.binding.TableBindingModel

Object
   |
   +----AbstractDocument
           |
           +----PlainDocument
                   |
                   +----BindingModel
                           |
                           +----symantec.itools.db.beans.binding.TableBindingModel

public class TableBindingModel
extends BindingModel

Class Index

 o symantec.itools.db.beans.binding.TableBindingModel. ColumnSorter
 o symantec.itools.db.beans.binding.TableBindingModel. SortAlgorithm

Variable Index

 o columnAttributes
 o tableColumnModel

Constructor Index

 o symantec.itools.db.beans.binding.TableBindingModel()

Method Index

 o addColumnSorter(TableBindingModel. ColumnSorter)
 o addMouseListenerToTableHeader()
 o compare(int, int)
 o getColumnAttributes()
Returns an array of ColumnAttributes which represents the table columns' properties.
 o getColumnAttributes(int)
Returns a table column's attributes.
 o getRealRowNumber(int)
 o getSortedRowNumber(int)
 o getTable()
 o getTableBinding()
 o getValueAt(int, int)
 o isCellEditable(int, int)
Overrides TableModel's isCellEditable method.
 o setColumnAttributes(ColumnAttributes[])
Sets table columns attributes.
 o setColumnAttributes(int, ColumnAttributes)
Sets a table column's attributes.
 o setSortAlgorithm(TableBindingModel. SortAlgorithm)
 o setTable(JTable)
 o setTableBinding(String)
 o setValueAt(Object, int, int)
 o sort()
Sort _indexes by comparing the rows they're "pointing" to on the basis of the columns in _sortingColumns and in the direction indicated by _ascending.

Variables

 o columnAttributes
protected symantec.itools.db.beans.binding.ColumnAttributes[] columnAttributes
 o tableColumnModel
protected com.sun.java.swing.table.TableColumnModel tableColumnModel

Constructors

 o TableBindingModel
public TableBindingModel()

Methods

 o addColumnSorter
public void addColumnSorter(TableBindingModel.ColumnSorter cs)
 o addMouseListenerToTableHeader
protected void addMouseListenerToTableHeader()
 o compare
public int compare(int row1,
                   int row2)
 o getColumnAttributes
public symantec.itools.db.beans.binding.ColumnAttributes[] getColumnAttributes()
Returns an array of ColumnAttributes which represents the table columns' properties.

 o getColumnAttributes
public symantec.itools.db.beans.binding.ColumnAttributes getColumnAttributes(int index)
Returns a table column's attributes. This is just a convenience method.

 o getRealRowNumber
protected int getRealRowNumber(int realRowNumber)
Overrides:
getRealRowNumber in class BindingModel
 o getSortedRowNumber
protected int getSortedRowNumber(int sortedRowNumber)
Overrides:
getSortedRowNumber in class BindingModel
 o getTable
public com.sun.java.swing.JTable getTable()
 o getTableBinding
public java.lang.String getTableBinding()
 o getValueAt
public java.lang.Object getValueAt(int aRow,
                                   int aColumn)
Overrides:
getValueAt in class BindingModel
 o isCellEditable
public boolean isCellEditable(int row,
                              int col)
Overrides TableModel's isCellEditable method. Returns whether or not a column is editable. The method returns true if no column attributes are set.

Returns:
true if the given cell is editable.
Overrides:
isCellEditable in class BindingModel
 o setColumnAttributes
public void setColumnAttributes(ColumnAttributes[] columnAttributes)
Sets table columns attributes. The length of the array should be equal to the number of columns.

Warning: This method sets the AutoCreateColumnsFromModel property of JTable to false and creates a table column model which is an unstance of symantec.itools.db.beans.binding.DBColumnModel

 o setColumnAttributes
public void setColumnAttributes(int index,
                                ColumnAttributes vp)
Sets a table column's attributes. This is just a convenience method.

 o setSortAlgorithm
public void setSortAlgorithm(TableBindingModel.SortAlgorithm sa)
 o setTable
public void setTable(JTable table)
 o setTableBinding
public void setTableBinding(String binding)
 o setValueAt
public void setValueAt(Object aValue,
                       int aRow,
                       int aColumn)
Overrides:
setValueAt in class BindingModel
 o sort
protected void sort()
Sort _indexes by comparing the rows they're "pointing" to on the basis of the columns in _sortingColumns and in the direction indicated by _ascending.


All Packages  Class Hierarchy  This Package  Previous  Next  Index